<div class="large-9 columns">
    
<table>
  <thead>
    <tr>
      <th >Адреса</th> 
      <th width="100">Кімнат</th>
      <th width="100">Площа</th>
      <th width="125">Ціна</th>
      <th width="100">Деталі</th>
    </tr>
      
      
  </thead>
    <tbody>
        <tr>         
<?php $apartments = ORM::factory('apartment')
            ->find_all();
        
            foreach($apartments as $apartment)
            {     
       
                echo '<td>'.$apartment->city->region->name.', м.'.$apartment->city->name.', вул.'.$apartment->street .','.$apartment->house.'/'.$apartment->number.'</td>';
                echo '<td>'.$apartment->numberRoom .'</td>';
                echo '<td>'.$apartment->area .'</td>';
                echo '<td>'.$apartment->price .'</td>';
                echo '<td><a href="#" id="'.$apartment->id.'" data-reveal-id="'.$apartment->id.'">Деталі</a></td>';
                
                echo '</tr>';
            }            
        
?>
            
       
</tbody>
    
    </table>
        <?php echo $pagination ?>  
    </div>
 